library _;

import 'dart:io';

import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_yfree/YFree.dart';
import 'package:gallery_saver/gallery_saver.dart';
import 'package:photo_view/photo_view.dart';
import 'package:photo_view/photo_view_gallery.dart';
import 'package:universal_html/html.dart' as html;

part 'controller.dart';

part 'view.dart';

class ShowPicturePage extends YPage {
  ShowPicturePage({required this.pictures, required this.index}) {
    pageController = PageController(initialPage: index);
  }

  List<String> pictures;
  int index;
  PageController? pageController;

  @override
  void yOnCreate() {}

  @override
  void yOnDestory() {
    pageController?.dispose();
  }

  @override
  bool ySafeAreaBottom() => false;

  @override
  Widget yBuild(BuildContext context) {
    return AnnotatedRegion(
      value: SystemUiOverlayStyle.light,
      child: Stack(
        children: [
          view_gallery(),
          view_top(),
          view_num(),
        ],
      ),
    );
  }
}
